/**
 * Copyright 2023 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

@import '~/styles/variables';

.timer {
  display: flex;

  label,
  .time {
    font-size: 16px;
    line-height: 24px;
    font-weight: 400;
    color: $black;
    @media screen and (min-width: 768px) {
      line-height: 32px;
    }
  }

  .progressBarWrapper {
    flex: 1;
    position: relative;
    margin-left: 8px;

    .time {
      font-family: 'Space Mono';
      position: absolute;
      top: 0;
      left: 8px;
      height: 100%;
      display: flex;
      align-items: center;
    }

    progress {
      -webkit-appearance: none;
      appearance: none;
      height: 100%;
      width: 100%;
      overflow: hidden;
      border-radius: 4px;
      border: none;
      background-color: $drop_shadow;

      &::-webkit-progress-bar {
        background-color: $drop_shadow;
      }

      &::-webkit-progress-value {
        background-color: $bright_orange;
      }

      &::-moz-progress-bar {
        background-color: $bright_orange;
      }
    }
  }
}
